package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.MeetingRoomMaintainPageQueryDTO;
import com.sky.entity.MeetingRoom;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface MeetingRoomMaintainMapper {
    // 分页查询会议室信息
    Page<MeetingRoom> pageQuery(MeetingRoomMaintainPageQueryDTO meetingRoomMaintainPageQueryDTO);

    // 更新会议室状态
    // 1.呼叫清洁工打扫会议室
    // 2.呼叫维修工修理会议室
    @Update("UPDATE meeting_room SET status = '维护' WHERE id = #{id}")
    void updateMeetingRoomStatus(Long id);
}
